package com.ruoyi.mobile.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 指定分数运动处方配置对象 lesson_point_prescription
 * 
 * @author ruoyi
 * @date 2023-01-10
 */
public class LessonPointPrescription extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 分数 */
    @Excel(name = "分数")
    private BigDecimal point;

    private BigDecimal price;

    /** 简单描述 */
    @Excel(name = "简单描述")
    private String desc;

    /** 禁忌人群 */
    @Excel(name = "禁忌人群")
    private String prohibition;

    /** 注意事项 */
    @Excel(name = "注意事项")
    private String attention;

    private List<LessonPointPrescriptionItem> lessonPointPrescriptionItems;

    private List<LessonPartBean> lessonPart;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPoint(BigDecimal point) 
    {
        this.point = point;
    }

    public BigDecimal getPoint() 
    {
        return point;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }
    public void setProhibition(String prohibition) 
    {
        this.prohibition = prohibition;
    }

    public String getProhibition() 
    {
        return prohibition;
    }
    public void setAttention(String attention) 
    {
        this.attention = attention;
    }

    public String getAttention() 
    {
        return attention;
    }

    public List<LessonPointPrescriptionItem> getLessonPointPrescriptionItems() {
        return lessonPointPrescriptionItems;
    }

    public void setLessonPointPrescriptionItems(List<LessonPointPrescriptionItem> lessonPointPrescriptionItems) {
        this.lessonPointPrescriptionItems = lessonPointPrescriptionItems;
    }

    public List<LessonPartBean> getLessonPart() {
        return lessonPart;
    }

    public void setLessonPart(List<LessonPartBean> lessonPart) {
        this.lessonPart = lessonPart;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("point", getPoint())
            .append("price", getPrice())
            .append("desc", getDesc())
            .append("prohibition", getProhibition())
            .append("attention", getAttention())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public static class LessonPartBean {
        /**
         * desc : 1231
         * cover : https://qny.bravo.love/video_cover/1_2023010118582547154813
         * lessonList : [{"lessonId":"10"},{"lessonId":"11"}]
         */
        private Integer id;
        private String title;
        private String cover;
        private Integer itemTime;
        private List<DayListBean> dayList;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public Integer getItemTime() {
            return itemTime;
        }

        public void setItemTime(Integer itemTime) {
            this.itemTime = itemTime;
        }

        public List<DayListBean> getDayList() {
            return dayList;
        }

        public void setDayList(List<DayListBean> dayList) {
            this.dayList = dayList;
        }

        public static class DayListBean {
            private Integer id;

            private String title;

            private List<LessonListBean> lessonList;

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public List<LessonListBean> getLessonList() {
                return lessonList;
            }

            public void setLessonList(List<LessonListBean> lessonList) {
                this.lessonList = lessonList;
            }

            public static class LessonListBean {
                /**
                 * lessonId : 10
                 */

                private String lessonId;

                public String getLessonId() {
                    return lessonId;
                }

                public void setLessonId(String lessonId) {
                    this.lessonId = lessonId;
                }
            }
        }
    }
}
